All Functions of Week 5

with

{base}

evaluate expression in the context of a data frame

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

read_csv

{readr}

Read CSV files

lm

{stats}

Fit linear models using least squares

replace

{base}

Replace elements in a vector

mutate

{dplyr}

Create new variables

summary

{base}

Obtain summary statistics or detailed regression output

geom_point

{GGPLOT2}

Generates a scatter plot

geom_smooth

{GGPLOT2}

Generates a smoothed conditional means curve / line

factor

{base}

Create a factor

attach

{base}

Attach Set of R Objects to Search Path

factor

{base}

Create factor variables

is.na

{base}

Check if a value is NA/elements of vector are NA

as.character

{base}

Coerce a vector to character

setwd

{base}

Set Working Directory

as.numeric

{base}

Coerce a vector to numeric

ggplot

{GGPLOT2}

Create a ggplot graph

filter

{dplyr}

Filter out rows of a data frame according to logical vector

write.csv

{utils}

write a csv file to a data frame

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

recode

{dplyr}

Recode a variable

library

{base}

Load an R package

The end!